/*
 * 作者		www.TheWk.cn.vc
 * 开发环境	Windows7 64位 MyEclipse8.6 JDK1.6.0_37
 * 开发日期	2013-11-1
 */
package common.model;

import java.util.ArrayList;
import java.util.List;

/**
 * <hr/>
 * 
 * @author www.TheWk.cn.vc
 * @version 1.0 2013-11-1
 */
public class EasyUiScoreGridModel<T> extends BaseModel {

	private static final long serialVersionUID = -8116092624502674793L;

	public static final int   Status_Success   = 200;
	public static final int   Status_Error     = 300;

	private int               status;
	private String            message;
	private long              total;
	private List<T>           points_consume_history;
	private Long locked_points; 
	private Long available_points; 

	/**
	 * 状态为Error
	 */
	public EasyUiScoreGridModel() {
		this.status = Status_Error;
		points_consume_history = new ArrayList<T>();
	}

	/**
	 * 传入状态
	 */
	public EasyUiScoreGridModel(int status) {
		this.status = status;
		points_consume_history = new ArrayList<T>();
	}

	/**
	 * 传入消息,状态为Error
	 */
	public EasyUiScoreGridModel(String message) {
		this.status = Status_Error;
		this.message = message;
		points_consume_history = new ArrayList<T>();
	}

	public EasyUiScoreGridModel(List<T> rows) {
		this.status = Status_Success;
		this.points_consume_history = rows;
	}

	public EasyUiScoreGridModel(List<T> rows, long total) {
		this.status = Status_Success;
		this.total = total;
		this.points_consume_history = rows;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public long getTotal() {
		return total;
	}

	public void setTotal(long total) {
		this.total = total;
	}

	public List<T> getPoints_consume_history() {
		return points_consume_history;
	}

	public void setPoints_consume_history(List<T> points_consume_history) {
		this.points_consume_history = points_consume_history;
	}

	public Long getLocked_points() {
		return locked_points;
	}

	public void setLocked_points(Long locked_points) {
		this.locked_points = locked_points;
	}

	public Long getAvailable_points() {
		return available_points;
	}

	public void setAvailable_points(Long available_points) {
		this.available_points = available_points;
	}

	

}
